﻿using System;

namespace Studio.Network.Kaixin001.Entities
{
    public class Account
    {
        private string email;

        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        private string pass;

        public string Pass
        {
            get { return pass; }
            set { pass = value; }
        }

        public Account(string email, string pass)
        {
            this.email = email;
            this.pass = pass;
        }

        public override bool Equals(Object obj)
        {
            if (obj is Account)
            {
                Account account = (Account)obj;
                return this.Email.Equals(account.Email) && this.Pass.Equals(account.Pass);
            }
            else
            {
                return false;
            }
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}